<?php

/**
 * 
 */
 
class icones extends Plugin
{
    //    internal variables
    
    //    Constructor
    function __construct ( ){
        parent::__construct();
        $this->scope[]   = 'Item_returnArray';
        $this->droits    = 'VISITOR';
        $this->nom       = 'Icones';
        $this->className = 'icones';
        $this->desc      = '';
        $this->uniId     = 'IcoUNIID';
        $this->version   = '0.1';
    
        $this->content   = '';   
    }    
    
    public function Item_returnArray($item)
    {
        if($item->getType() != IMG && $item->getType() != VID)
        {
            $ext = trouveExtention($item->getLien());
            if(file_exists('./plugin/icones/images/'.$ext.'.png'))
            {
                $item->setMore(array('ICONE_ITEM'=>'./plugin/icones/images/'.$ext.'.png'));
            }
        }
    }
}


?>
